<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    Array.prototype.myFind = function(fn,start=0,end=this.length){
      for(let i = start ;i <end ;i++){
        console.log(this)
        console.log(this[i])
        console.log(fn.call(this,this[i],i,this))
        if(fn.call(this,this[i],i,this)){
          return this[i]
        }
      }
    }
    Array.prototype.myFindIndex = function(fn,start=0,end=this.length){
      for(let i = start ;i <end ;i++){
        if(fn.call((this,this[i],i,this))){
          return i
        }
      }
    }
    const array1 = [5, 12, 8, 130, 44];

const found = array1.myFind(element => element > 10);
console.log(found)
  </script>
</body>
</html>